<?php
/**
 * Created by PhpStorm.
 * User: jungshen
 * Date: 2018/8/6
 * Time: 15:47
 */

namespace app\api\validate;


use think\Validate;

class Member extends Validate
{
    protected $rule = [
        'headimg|头像' =>  'require|url',
        'nickname|名字'  =>  'require|max:10',
        'phone|手机号' =>  'require|mobile',
        'province|省份' =>  'require|number|gt:0',
        'city|城市' =>  'require|number|gt:0',
        'district|区县' =>  'require|number|gt:0',
        'address|详细地址' =>  'require',
        'lng|经度' =>  'require',
        'lat|纬度' =>  'require',
    ];
}